package com.steakliu.druiddatasource;

import com.steakliu.druiddatasource.datasource.DataSourceConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;
import java.util.ArrayList;
import java.util.List;

@SpringBootApplication
public class DruidDataSourceApplication {

    public static void main(String[] args) {

        SpringApplication.run(DruidDataSourceApplication.class, args);

//        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DataSourceConfiguration.class);
//        String[] beanNamesForType = context.getBeanNamesForType(DataSource.class);
//        for (String s : beanNamesForType) {
//            System.out.println(s);
//        }
    }

}
